﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;

namespace SI2_TrabalhoFinal
{
    class MyButton : Button
    {
        ManualResetEvent _evt;

        public void SetAR(ManualResetEvent ar)
        {
            _evt = ar;
        }

        protected override void OnClick(EventArgs e)
        {
            if (_evt!=null)
                _evt.Set();
            base.OnClick(e);
        }
    }
}
